package com.erp.entity.purchase;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author :qinya
 * @PackageName:com.erp.entity.purchase
 * @ClassName: ComparePrice
 * @Description: 比价单
 * @date : 2025/7/4,9:06
 */
public class ComparePrice {

    private Integer comparePriceId;  // 比价单ID
    private Integer companyId;  // 公司ID
    private String comparePriceCode;  // 比价单编号
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date invoiceCreateDate;// 制单时间
    private Integer invoiceMakerId; // 制单人
    private Integer auditorId; // 审核人
    private String remark;  // 比价单备注
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Integer invoiceState;  // 单据状态
    private List<ComparePriceDetail> comparePriceDetailList;  // 比价单明细
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date deadline;// 失效日期

    public Integer getComparePriceId() {
        return comparePriceId;
    }

    public void setComparePriceId(Integer comparePriceId) {
        this.comparePriceId = comparePriceId;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getComparePriceCode() {
        return comparePriceCode;
    }

    public void setComparePriceCode(String comparePriceCode) {
        this.comparePriceCode = comparePriceCode;
    }

    public Date getInvoiceCreateDate() {
        return invoiceCreateDate;
    }

    public void setInvoiceCreateDate(Date invoiceCreateDate) {
        this.invoiceCreateDate = invoiceCreateDate;
    }

    public Integer getInvoiceMakerId() {
        return invoiceMakerId;
    }

    public void setInvoiceMakerId(Integer invoiceMakerId) {
        this.invoiceMakerId = invoiceMakerId;
    }

    public Integer getAuditorId() {
        return auditorId;
    }

    public void setAuditorId(Integer auditorId) {
        this.auditorId = auditorId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getInvoiceState() {
        return invoiceState;
    }

    public void setInvoiceState(Integer invoiceState) {
        this.invoiceState = invoiceState;
    }

    public List<ComparePriceDetail> getComparePriceDetailList() {
        return comparePriceDetailList;
    }

    public void setComparePriceDetailList(List<ComparePriceDetail> comparePriceDetailList) {
        this.comparePriceDetailList = comparePriceDetailList;
    }

    public Date getDeadline() {
        return deadline;
    }

    public void setDeadline(Date deadline) {
        this.deadline = deadline;
    }

}
